import Vue from 'vue'
import ElementUI from 'element-ui';
import '../assets/element/index.css';

Vue.use(ElementUI);

Vue.prototype.$static_url = 'http://127.0.0.1:3000'

Vue.prototype.$delMessage = function(callback){this.$confirm('此操作将永久删除该对象, 是否继续?', '嘿嘿嘿', {
    confirmButtonText: '确定',
    cancelButtonText: '取消',
    type: 'warning'
  }).then(
    ()=>{
      callback()
    }
  ).catch(
    ()=>{
      this.$message({
        type: "info",
        message: "后悔了吧~~"
      })
    }
  )
}